import Vue from 'vue'
import Vuex from 'vuex'
import state from './state.js'
import mutations from './mutations.js'
import actions from './actions.js'
import getters from './getters.js'

Vue.use(Vuex);
export default new Vuex.Store({
	state, // 状态树
	mutations, // 更改状态
	actions, //异步操作更改mutations
	getters // 计算属性
})